import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/views/out-box/center-box.vue'

import Wood from '@/views/wood-game/index.vue'
import WoodMap from '@/views/wood-game/map.vue'
import Lingmeng from '@/views/lingmeng-water-game/index.vue'
import Saolei from '@/views/saolei/index.vue'
import guessGuess from '@/views/guess-guess/guessGuess.vue'
import DragBox from '@/views/drag-box/dragBox.vue'
import SnackGame from '@/views/snack-box/SnackBox.vue'
import RoomEscape from '@/views/room-escape/RoomEscape.vue'
import PokerJinhua from '@/views/poker-games/zhajinhua.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'Home',
  component: Home,
  meta:{
    // 
    title: '首页'
  }
}, {
  path: '/Wood',
  name: 'Wood',
  component: Wood
}, {
  path: '/WoodMap',
  name: 'WoodMap',
  component: WoodMap
},{
  path: '/Lingmeng',
  name: 'Lingmeng',
  component: Lingmeng
},{
  path: '/Saolei',
  name: 'Saolei',
  component: Saolei,
  meta:{
    // 
    title: '扫雷',
  }
},{
  path: '/guessGuess',
  name: 'guessGuess',
  component: guessGuess
},{
  path: '/DragBox',
  name: 'DragBox',
  component: DragBox
},{
  path: '/SnackGame',
  name: 'SnackGame',
  component: SnackGame
},{
  path: '/RoomEscape',
  name: 'RoomEscape',
  component: RoomEscape,
},{
  path: '/PokerJinhua',
  name: 'PokerJinhua',
  component: PokerJinhua,
},


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
